import request from '@/utils/request'



export function gosendMoeny(memberId,money,remark) {
  return request({
    url: '/mahjong/members/sendMoney/'+memberId+"/"+money+"/"+remark,
    method: 'get'
  })
}
/**
 * 删除开桌后的人员信息
 * @param query
 */
export function delOpenDeskMember(query) {
  return request({
    url: '/mahjong/record/delOpenDeskMember',
    method: 'get',
    params: query
  })
}
//开桌后增加人员信息
export function addOpenTableMember(memberId,orderNumber) {
  return request({
    url: '/mahjong/record/addOpenTableMember/'+memberId+"/"+orderNumber,
    method: 'get'
  })
}
//查询所有会员信息
export function listAll(query) {
  return request({
    url: '/mahjong/member/listAll',
    method: 'get',
    params: query
  })
}
// 查询会员管理列表
export function listMember(query) {
  return request({
    url: '/mahjong/member/list',
    method: 'get',
    params: query
  })
}
export function getzi() {
  return request({
    url: '/mahjong/member/getzilist',
    method: 'get'
  })
}
export function getpoolist() {
  return request({
    url: '/mahjong/member/getpoolist',
    method: 'get'
  })
}
export function getzi2() {
  return request({
    url: '/mahjong/member/getzilist2',
    method: 'get'
  })
}

export function saleCount() {
  return request({
    url: '/mahjong/members/count',
    method: 'get'
  })
}
export function getchoosezi() {
  return request({
    url: '/mahjong/member/getpoolist',
    method: 'get'
  })
}
export function listalluser() {
  return request({
    url: '/mahjong/reservation/listalluser',
    method: 'get'
  })
}

export function goPollMember(data) {
  return request({
    url: '/mahjong/member/goPollMember',
    method: 'post',
    data: data
  })
}
export function recommendlist(query) {
  return request({
    url: '/mahjong/member/recommendlist',
    method: 'get',
    params: query
  })
}
// 查询会员管理详细
export function getMember(id) {
  return request({
    url: '/mahjong/member/' + id,
    method: 'get'
  })
}

// 新增会员管理
export function addMember(data) {
  return request({
    url: '/mahjong/member',
    method: 'post',
    data: data
  })
}

// 修改会员管理
export function updateMember(data) {
  return request({
    url: '/mahjong/member',
    method: 'put',
    data: data
  })
}

// 删除会员管理
export function delMember(id) {
  return request({
    url: '/mahjong/member/' + id,
    method: 'delete'
  })
}


// 删除会员管理
export function rollbackMember(id) {
  return request({
    url: '/mahjong/member/rollbackMember/' + id,
    method: 'get'
  })
}
// 导出会员管理
export function exportMember(query) {
  return request({
    url: '/mahjong/member/export',
    method: 'get',
    params: query
  })
}
